package cn.mavor.day0910.Student;

public class Student {
    private String name;
    private String className;
    private int score;

    public Student(String name, String className, int score) {
        this.name = name;
        this.className = className;
        this.score = score;
    }

    public String getName() {
        return name;
    }

    public String getClassName() {
        return className;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return name + ":" + className + "," + score;
    }
}